<?php
namespace App\Models;

use App\Models\UnionTableTrait;//引入上面的类
use Illuminate\Database\Eloquent\Model;


class UserCall extends Model
{

    use UnionTableTrait;
    protected $connection = 'mysql';
    protected $splitTable = 'a_user_call'; 
    protected $splitTableNameRule = '_Y_m';   
    protected $splitTableMode = 'month'; 
    const CREATED_AT = 'channel_time';      // 分表依据的字段
    protected $dateFormat = 'U';

}
